/*
 * Copyright (C) 2010 ExtPlus.org
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.extplus.ajax;

/**
 * AJAX任务管理器，AJAX任务请求数据体
 * @param <T> 请求参数对象类型
 */
public class AjaxTaskRequest<T> {

    /**
     * 请求URI
     */
    private String uri;

    /**
     * 请求参数
     */
    private String params;

    /**
     * 请求参数对象
     */
    private T paramsObj;

    /**
     * 获取请求URI
     * @return 请求URI
     */
    public String getUri() {
        return uri;
    }

    /**
     * 设置请求URI
     * @param uri 请求URI
     */
    public void setUri(String uri) {
        this.uri = uri;
    }

    /**
     * 获取请求参数
     * @return 请求参数
     */
    public String getParams() {
        return params;
    }

    /**
     * 设置请求参数
     * @param params 请求参数
     */
    public void setParams(String params) {
        this.params = params;
    }

    /**
     * 获取请求参数对象
     * @return 请求参数对象
     */
    public T getParamsObj() {
        return paramsObj;
    }

    /**
     * 设置请求参数对象
     * @param paramsObj 请求参数对象
     */
    public void setParamsObj(T paramsObj) {
        this.paramsObj = paramsObj;
    }

}
